<#include "../common/nolayout.ftl"/>
<@html css_=['user/blog.css'] js_=['user/follow.js']>

<body class="childrenBody">
<blockquote class="layui-elem-quote news_search">
    <form class="layui-form" id="listForm" action="${root}/m/follow/list" method="post">
        <input type="hidden" name="number" id="number" value="1"/>
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" value="" id="roleName" name="roleName" placeholder="请输入用户名称" class="layui-input search_input">
            </div>

            <a class="layui-btn search_btn" lay-submit lay-filter="queryForm">查询</a>
        </div>

    </form>
</blockquote>
<div class="layui-form roles_list">
    <table class="layui-table">
        <thead>
        <tr>
            <th>姓名</th>
            <th>信息</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody id="listDataBody"></tbody>
    </table>
</div>
<div id="page"></div>
</body>


<script id="dataListTpl" type="text/html">
    {{#  if(d.list!=null&&d.list.length> 0){ }}
    {{#  layui.each(d.list, function(index, item){ }}
    <tr>
        <td>{{item.roleName||''}}</td>
        <td></td>
        <td>
            <div class="layui-btn-container">
                <a class="layui-btn layui-btn-xs roleEdit" data-id="{{item.id}}">
                    <i class="layui-icon">&#xe642;</i>备注</a>
                <#--<a class="layui-btn layui-btn-xs layui-btn-warm roleFunctionEdit" data-id="{{item.id}}">
                    <i class="layui-icon">&#xe631</i>私信</a>-->
                <a class="layui-btn layui-btn-xs layui-btn-danger roleDel" data-id="{{item.id}}">
                    <i class="layui-icon">&#xe640;</i>取消关注</a>
            </div>
        </td>
    </tr>
    {{#  }); }}
    {{#} else { }}
    <tr>
        <td colspan="3" style="text-align: center">无数据</td>
    <tr/>
    {{# }}}

</script>

</@html>